package com.woniu.web.service;

import com.woniu.common.entity.TbJpPermission;
import com.woniu.common.entity.TbJpRole;
import com.woniu.common.entity.TbJpRolePermissionKey;
import com.woniu.shiro.pojo.RoleTree;
import com.woniu.shiro.pojo.Trees;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface TbJpPermissionService {
    List<TbJpPermission> findAllPermission(String title);


    void addPermission(TbJpPermission tbJpPermission);

    void delPermission(Integer permissionId);

    void updatePermission(TbJpPermission tbJpPermission);

    void delPermissionMore(Integer[] permissionIds);

    Map<String,Object> findAllPermissionTree(Integer roleId);

    void addRolePermission(Integer[] permissionIds);

    List<Trees> UserIdToCheckPermissionByUserId( Integer userId,  Integer parentId);
    List<Trees> UserIdToCheckPermissionByPhone(Long phone);
}
